import java.io.*;
import java.net.*;
import java.util.Scanner;
public class OldClient {
 public static void main(String argv[]) throws Exception
 {
    String dvrMessage;
    //Get DVR Message in full.
    //For now, use default.
    dvrMessage = "default";
    accessLocalHost(dvrMessage);
    
 } 
 
 public static void accessLocalHost(String message) throws Exception {
  
  //Create socket that connects to the local host.
  Socket clientSocket = new Socket("localhost", 33445);
  
  //Set up our output stream, which we will use to send -webAddress- to the localhost.
  DataOutputStream outToServer = new DataOutputStream(clientSocket.getOutputStream());  
  //Send our message to the localhost.
  outToServer.writeBytes(message);  
  //Close the socket
  clientSocket.close();  
 }
}
